Search

ES8 的 async/await 語法,其實是 ES6 的 Generator Function ...

  • Share this:

ES8 的 async/await 語法,其實是 ES6 的 Generator Function + Promise 的語法糖,對於不支援 ES8 的瀏覽器,我們還是可以用 ES6 做出 async/await 的效果。

https://dotblogs.com.tw/supershowwei/2020/05/04/115512


Tags:

About author
not provided
軟體跟料理一樣,都變成了每人每天的生活必需品。
View all posts